package com.xbongbong.pro.common.pojo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.List;

/**
 * @author jiangren.li
 * @version v1.0
 * @date 2021/12/02 15:51
 */
@Setter
@Getter
@ToString
public class RepeatSearchFieldPojo {
    private Integer businessType;
    private Long formId;
    private String attr;

    /**
     * 判重方式 1模板内判重，2全局判重
     */
    private Integer repeatType;

    /**
     * 匹配方式 1 精确匹配 2 模糊匹配
     */
    private Integer matchWay;


    /**
     * 查重内容
     */
    private String value;
    /**
     * 子表单查重内容
     */
    private List<String> subValueList;

    public RepeatSearchFieldPojo() {
    }

    public RepeatSearchFieldPojo(Long formId, String attr, String value) {
        this.formId = formId;
        this.attr = attr;
        this.value = value;
    }
}
